<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
		<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
		<html>
		<head>
			<title>内容发布日志</title>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
			<jsp:include page="/WEB-INF/views/include/newhead.jsp" />
		</head>
		<body class="childrenBody site-block">
			<header class="larry-personal-tit">
				<span>
				    <!-- contentPublishLog 将user对应替换 -->
					<c:if test="${empty user.id}">新增</c:if>
					<c:if test="${not empty user.id}">修改</c:if>
				</span>
			</header>
			
			<div class="mainCon">
				<form:form id="inputForm" autocomplete="off" modelAttribute="contentPublishLog" action="${ctx}/content/contentPublishLog/save" method="post">
					<form:hidden path="id"/>
					<sys:message content="${message}"/>
					
					    <!-- 参考 排版后删除  开始 -->
						<div class="layui-form-item">
						    <div class="layui-inline">
						      <label class="layui-form-label"><font color="red">*</font>一行两列例子</label>
						      <div class="layui-input-inline">
						        <input type="text" placeholder="请输入一行两列例子" class="layui-input required" >
						      </div>
						</div>
						<div class="layui-inline">
							      <label class="layui-form-label">一行两列例子</label>
							      <div class="layui-input-inline">
							        <input type="text" placeholder="请输入一行两列例子"  class="layui-input">
							      </div>
							    </div>
						</div>
						
						 <!-- 一行显示一列例子 ：添加 layui-input-inline-one 样式  -->
						 <div class="layui-form-item">
							    <label class="layui-form-label">单行输入框</label>
							    <div class="layui-input-inline layui-input-inline-one">
							      <input type="text" name="title" placeholder="请输入单行输入框" class="layui-input">
							    </div>
                         </div>
					
					<!-- 参考 排版后删除  结束 -->
					
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">描述</label>
									<div class="layui-input-inline">
											<form:input path="titleDescribe" placeholder="请输入描述"  maxlength="2000" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">封面(快手)</label>
									<div class="layui-input-inline">
											<form:input path="cover" placeholder="请输入封面(快手)"  maxlength="1000" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">快手查看权限（1.公开 2.仅自己可见）</label>
									<div class="layui-input-inline">
											<form:input path="ksSee" placeholder="请输入快手查看权限（1.公开 2.仅自己可见）"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">抖音查看权限（1.公开2.好友可见3.仅自己可见）</label>
									<div class="layui-input-inline">
											<form:input path="dySee" placeholder="请输入抖音查看权限（1.公开2.好友可见3.仅自己可见）"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">发布类型（1.立即发布 2.定时发布）</label>
									<div class="layui-input-inline">
											<input name="publishType" type="text" readonly="readonly" maxlength="20" class="layui-input dateInput"
												value="<fmt:formatDate value="${contentPublishLog.publishType}" pattern="yyyy-MM-dd HH:mm:ss"/>"
												onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});" placeholder="请输入发布类型（1.立即发布 2.定时发布）"/>
											<i class="layui-icon layui-icon-date" style="position: absolute;top:10px;right: 8px;"></i>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">允许他人保存视频(1允许 0不允许)</label>
									<div class="layui-input-inline">
											<form:input path="canSave" placeholder="请输入允许他人保存视频(1允许 0不允许)"  maxlength="10" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">抖音视频分类</label>
									<div class="layui-input-inline">
											<form:input path="dyVideoType" placeholder="请输入抖音视频分类"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">小红书正文</label>
									<div class="layui-input-inline">
											<form:input path="textPart" placeholder="请输入小红书正文"  maxlength="200" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">发布平台（1.抖音2.快手3.小红书）</label>
									<div class="layui-input-inline">
											<form:input path="doPlatform" placeholder="请输入发布平台（1.抖音2.快手3.小红书）"  maxlength="10" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">发布标识（1全部账号发布 2.部分账号发布）</label>
									<div class="layui-input-inline">
											<form:input path="doAll" placeholder="请输入发布标识（1全部账号发布 2.部分账号发布）"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">账号id集合</label>
									<div class="layui-input-inline">
											<form:input path="accountIds" placeholder="请输入账号id集合"  class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">账号集合</label>
									<div class="layui-input-inline">
											<form:input path="accounts" placeholder="请输入账号集合"  class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">是否成功（1成功2.失败）</label>
									<div class="layui-input-inline">
											<form:input path="doSuccessful" placeholder="请输入是否成功（1成功2.失败）"  maxlength="10" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">备注信息</label>
									<div class="layui-input-inline">
											<form:textarea path="remarks" placeholder="请输入备注信息" htmlEscape="false" rows="4" maxlength="255" class="layui-textarea"/>
									</div>
							   </div>
							</div>
					
					<div class="layui-form-item bottom_xf">
						<div class="layui-input-block input500">
							<button type="button" class="layui-btn layui-btn-primary" onclick="gotoView('${ctx}/content/contentPublishLog/');">返回</button>
							<button class="layui-btn" type="submit">保存</button>
							<button onclick="formReset();" type="button"  class="layui-btn layui-btn-danger">重置</button>
						</div>
					</div>
				</form:form>
			</div>

            <jsp:include page="/WEB-INF/views/include/pageJs.jsp" />
			
			<script type="text/javascript">
				$(document).ready(function() {
					$("#inputForm").validate({
						submitHandler: function(form){
							loading('正在提交，请稍等...');
							form.submit();
						},
					/**	在做异步验证的时候需要添加
					    rules: {
						
						},
						messages: {
						
						}, */
						errorContainer: "#messageBox",
						errorPlacement: function(error, element) {
							$("#messageBox").text("输入有误，请先更正。");
							if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
								error.appendTo(element.parent().parent());
							} else {
								error.insertAfter(element);
							}
						}
					});
				});
			</script>
		</body>
		</html>